<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>07_颜色属性-rgb-rgba</title>

        <style>
            #r {
                width: 100px;
                height: 100px;
                background-color: rgb(255,0,0);
            }

            #g {
                width: 100px;
                height: 100px;
                background-color: rgb(0,255,0);
            }

            #b {
                width: 100px;
                height: 100px;
                background-color: rgb(0,0,255);
            }

            #d4 {
                width: 100px;
                height: 100px;
                background-color: rgb(255,255,255);
            }

            #d5 {
                width: 100px;
                height: 100px;
                background-color: rgb(0,0,0);
            }

            #d6 {
                width: 100px;
                height: 100px;
                background-color: rgb(149, 171, 179);
            }

            #d7 {
                width: 100px;
                height: 100px;
                background-color: rgb(100%, 30%, 60%);
            }

            #d8 {
                width: 100px;
                height: 100px;
                background-color: rgb(100, 100, 100);
            }

            #d9 {
                width: 100px;
                height: 100px;
                /* background-color: rgba(100, 100, 100,.5); */
                background-color: rgba(100, 100, 100,50%);
            }


        </style>


    </head>
    <body>
        <div id="r">红色</div>
        <div id="g">绿色</div>
        <div id="b">蓝色</div>
        <div id="d4">白色</div>
        <div id="d5">黑色</div>

        <div id="d6">随便一个原色</div>
        <div id="d7">随便一个原色111111</div>

        <div id="d8">颜色</div>
        <div id="d9">颜色透明度</div>
    </body>
</html>